import time

from page.app_page_enter_home import AppPageEnterHome
from page.page_add import PageAdd
from page.page_login import PageLogin
from page.page_search import PageSearch
from script import log
from tools import Tools


class TestAdd(object):
    def test_add_success(self, driver,login,search):
        self.page = PageAdd(driver)
        self.page.add_goods()
        self.result = self.page.get_add_cart_success()
        log.info(f'添加购物车结果为：{self.result}')
        assert '【套餐赠耳机】HUAWEI/华为 畅享8 Plus 全面屏手机' in self.result







